import { NgModule } from '@angular/core';
import {RouterModule, Routes} from "@angular/router";
import {FeedComponent} from "@feed/feed.component";
import {FeedDetailComponent} from "@feed/feed-detail/feed-detail.component";
import {FeedResolver} from "@feed/feed.resolver";
import {AuthGuardService} from "@shared/service/auth-guard/auth-guard.service";
const routes: Routes = [
  {
    path: '',
    component: FeedComponent,
    canActivate: [AuthGuardService],
    // resolve: {
    //   feedList: FeedResolver
    // },
  },
  {
    path: ":userId",
    component: FeedComponent,
    // resolve: {
    //   feedList: FeedResolver
    // }
  },
  {
    path: 'detail/:contentId',
    component: FeedDetailComponent
  }
];
@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ]
})
export class FeedRoutingModule { }
